<%@ page language="java" contentType="text/html; charset=utf8"
         pageEncoding="utf8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <title>ASCII码列表</title>
</head>
<body>
<center>
    <h1>ASCII码列表</h1>
    <table>
        <%
            StringBuffer sb=new StringBuffer();
            sb.append("<tr>");
            sb.append("<th width=40>&nbsp</th>");
            for(int col=0;col<16;col++){
                sb.append("<th>");
                sb.append(Integer.toHexString(col));
                sb.append("</th>");
            }
            sb.append("</tr>");
            for(int row=0;row<16;row++){
                sb.append("<tr>");
                sb.append("<th>");
                sb.append(Integer.toHexString(row));
                sb.append("</th>");
                for(int col=0;col<16;col++){
                    char c=(char)(row*16+col);
                    sb.append("<td width=32 align=center>");
                    sb.append(c);
                    sb.append("</td>");
                }
                sb.append("</tr>");
            }
            out.println(sb);
        %>
    </table>
</center>
</body>
</html>